home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2007 December
/
PCWKCD1207B.iso
/
Windows marzen
/
Macro ToolsWorks 6.31
/
tworks.exe
/
Samples
/
Process lines in text file.mcr
< prev
next >
Wrap
Text File
|
2003-06-12
|
674b
|
27 lines
<#>
<#> This sample process lines in text file
<#>
<cmds>
<var_oper>(vFile,"",SELECT_FILE,"Select File","", "0")
<if_str>("_vCanceled==1")<exitmacro><endif>
<data_load>("vbTemp_FileText","%vFile%","")
<if_str>("_vErr==NO")
<var_oper>(vbTemp_NumOfLines,"vbTemp_FileText",TEXT_GET_NUMOFLINES,"","", "0")
<begloop>(vbTemp_NumOfLines)
<var_oper>(vbLine,"vbTemp_FileText",TEXT_GET_LINE,"_vLoopCounter","", "0")
<msg>(-100,-100,"INSTEAD OF THIS MESSAGE, YOU CAN DO YOUR OWN FILE LINE PROCESSING.
Line number:
%_vLoopCounter%
Line content:
%vbLine%
","Message",1)
<endloop>
<else>
<msg>(100,100,"_vError","Error",1)
<endif>